package com.xujicheng.designpattern.learn.factoryMethod;

/**
 * @project:design-pattern-learn
 * @package:com.xujicheng.designpattern.learn.factoryMethod
 * @author:xujicheng
 * @date:2018/8/8
 */
public class PizzaTestDrive {
    public static void main(String[] args) {
        ChicagoPizzaStore chicagoPizzaStore = new ChicagoPizzaStore();
        Pizza p1 = chicagoPizzaStore.orderPizza("cheese");
        System.out.println(null == p1?"":"得到chicagoPizza");

        NYPizzaStore nyPizzaStore = new NYPizzaStore();
        Pizza pizza = nyPizzaStore.orderPizza("cheese");
        System.out.println(null == pizza?"":"得到nyPizza");
    }
}
